package com.xinou.daily_report.PO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinou.common.base.database.Page;
import com.xinou.common.config.jackson.annotation.XoImageDeserializerAnnotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @since 2021-07-06
 */
@Data
public class FruitPO extends Page {
    @ApiModelProperty(value = "id")
    private Long id;

    private Long userId;

    private Long commanderId;

    @ApiModelProperty(value = "类型0表示加分，1表示减分")
    private Integer fruitType;

    private String reason;

    private Double singleScore;

    private Integer state;

    @XoImageDeserializerAnnotation
    private String bill;

    @ApiModelProperty(value = "插入时间 yyyy-MM-dd HH:mm:ss", example = "2020-11-28 00:12:23", required = true)
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "insert_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime insertTime;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "用户姓名")
    private String commanderName;

    private ArrayList<Long> ids;

    private Integer isUrge;

}
